package cn.liyunqi.controller;

import javafx.fxml.FXML;

import java.net.URL;
import java.util.ResourceBundle;

public class AlertAskController extends BaseFXController {

    private MainUIController mainUIController;

    void setMainUIController(MainUIController mainUIController) {
        this.mainUIController = mainUIController;
    }

    @Override
    public void initialize(URL location, ResourceBundle resources) {

    }

    @FXML
    public void coverHandle(){
        getDialogStage().close();

        mainUIController.createVoice(true);
    }

    @FXML
    public void rewriteHandle(){
        getDialogStage().close();
        mainUIController.createVoice(false);
    }

    @FXML
    public void cancelHandle(){
        getDialogStage().close();
    }


}
